﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.UI;
using System.Web.UI.WebControls;
using Wp.BLL;
using Wp.DAL;


public partial class Admin_Modules_Options_Default : System.Web.UI.Page
{
    //public static int PAGE_SIZE = 50;
    //public int PageIndex { get; set; }
    protected void Page_Load(object sender, EventArgs e)
    {
        //PageIndex = CommonHelper.QueryStringInt("PageIndex", 1);
        //if (!IsPostBack)
        //{
        //    LoadData();
        //}
    }
    #region Student methods

    [WebMethod(EnableSession = true)]
    public static object OptionList(int jtStartIndex, int jtPageSize , string jtSorting )
    {
        return TblOptionManager.CreateInstant().OptionList(jtStartIndex, jtPageSize, jtSorting);
    }

    [WebMethod(EnableSession = true)]
    public static object CreateOption(TblOptionEntity record)
    {
        return TblOptionManager.CreateInstant().CreateOption(record);
    }

    [WebMethod(EnableSession = true)]
    public static object UpdateOption(TblOptionEntity record)
    {
        return TblOptionManager.CreateInstant().CreateOption(record);
    }

    [WebMethod(EnableSession = true)]
    public static object DeleteOption(int StudentId)
    {
        return null;
    }

    #endregion
    //private void LoadData()
    //{
    //    List<TblOptionEntity> ls = new List<TblOptionEntity>();
    //    ls = TblOptionManager.CreateInstant().SelectAll();

    //    rpt.DataSource = ls.Skip((PageIndex - 1) * PAGE_SIZE).Take(PAGE_SIZE); ;
    //    rpt.DataBind();
    //    int TotalRow = ls.Count;
    //    smartPager1.PageSize = smartPager.PageSize = PAGE_SIZE;
    //    smartPager1.QueryStringKey = smartPager.QueryStringKey = "PageIndex";
    //    smartPager1.RowCount = smartPager.RowCount = TotalRow;
    //    smartPager1.NavigatePreviousText = smartPager.NavigatePreviousText = "<<";
    //    smartPager1.NavigateNextText = smartPager.NavigateNextText = ">>";
    //    //smartPager.Display=3;
    //    smartPager1.UrlFormatString = smartPager.UrlFormatString = "/Admin/Modules/Option/Default.aspx?PageIndex={0}";
    //    smartPager1.Visible = smartPager.Visible = TotalRow > PAGE_SIZE;
    //}

}